//
// Decompiled by Jadx - 346ms
//
package gc;

import android.text.TextUtils;
import fi.c;
import fi.w;
import fn.j;
import fn.y;
import gc.aw;

public final class av implements w.c, w.b {
    public final int a;
    public final aw.e b;

    public av(aw.e eVar, int i) {
        this.a = i;
        this.b = eVar;
    }

    public final void h(String str, String str2, w wVar, boolean z) {
        aw.e eVar = this.b;
        eVar.getClass();
        if (z && !TextUtils.isEmpty(str)) {
            eVar.b.getClass();
            aw.cz(str);
        }
    }

    public final void i(w wVar, c.a aVar, int i, int i2) {
        int i3 = this.a;
        aw.e eVar = this.b;
        switch (i3) {
            case 0:
                eVar.b.cv.c.dismiss();
                Object dx = z.dx(12, j.bk(j.ak("cn.soulapp.imlib.msg.chat.DiceFingerMsg"), new Object[]{Integer.valueOf(Integer.parseInt(aVar.getDesc()))}), y.by.getSoul().getToChatUserId());
                if (dx != null) {
                    z.el(dx);
                    return;
                }
                return;
            default:
                eVar.b.cv.c.dismiss();
                Object dx2 = z.dx(13, j.bk(j.ak("cn.soulapp.imlib.msg.chat.DiceFingerMsg"), new Object[]{Integer.valueOf(i2 + 1)}), y.by.getSoul().getToChatUserId());
                if (dx2 != null) {
                    z.el(dx2);
                    return;
                }
                return;
        }
    }
}
